package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDate;
import io.swagger.annotations.ApiModelProperty;

@Data
@TableName("power_cost")
public class PowerCost {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String loadName;

    private BigDecimal hourlyCost;

    private BigDecimal perKwhCost;

    private BigDecimal monthlyPowerGeneration;

    private BigDecimal monthlyPowerCost;

    private String remarks;

//    @ApiModelProperty("统计日期")
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
//    private LocalDate statisticsDate;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableLogic
    private Boolean isDeleted;
}